import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CommonModule} from '@angular/common';
import {WidgetComponent} from './widget.component';
import {TranslateModule} from '@ngx-translate/core';
import { FormsModule } from '@angular/forms';
import {TreeDemoModule} from '../../treedemo/treedemo.module'
import { ElModule } from 'element-angular';
import {SchemaModule} from '../schema/schema.module'
import {ModalDialogModule} from '../schema/modal-dialog/modal-dialog.module'
import {EditDialogModule} from '../schema/edit-dialog/edit-dialog.module'
import {PopoverModule} from "ng4-popover";
import {FiltersModule} from '../filters/filters.module';
import {GroupModule} from '../group/group.module';
import {KeysModule} from '../keys/keys.module';
import {TableStyleModule} from '../table-style/table-style.module';
import {DragDropModule} from 'primeng/dragdrop';
import {PieModule} from '../pie/pie.module';
import {FunnelModule} from '../funnel/funnel.module'
import {QuerytabModule} from '../querytab/querytab.module';
import {OptiontabModule} from '../optiontab/optiontab.module';
import {GridModule} from '../optiontab/grid/grid.module'
import {LegendModule} from '../optiontab/legend/legend.module'
import { ValAxisModule} from '../optiontab/valAxis/valAxis.module'
import {ExtModule} from '../optiontab/ext/ext.module'
import {CtgAxisModule} from '../optiontab/ctgAxis/ctgAxis.module'
import { ChartModule } from '../chart/chart.module'
import {NgxEchartsModule} from 'ngx-echarts'
import {MessagesModule} from 'primeng/messages';     //preming  message
import {MessageModule} from 'primeng/message';      //preming  message




// const ROUTES: Routes = [
//     { path: '', component: WidgetComponent }
// ];
@NgModule({
    declarations:[
        WidgetComponent
        // ChartComponent
        // TreeDemoComponent
    ],
    imports:[
        CommonModule,
        TranslateModule,
        FormsModule,
        TreeDemoModule,
        ElModule,
        SchemaModule,
        EditDialogModule,
        ModalDialogModule,
        PopoverModule,
        FiltersModule,
        GroupModule,
        KeysModule,
        TableStyleModule,
        DragDropModule,
        PieModule,
        FunnelModule,
        ChartModule,
        QuerytabModule,
        OptiontabModule,
        GridModule,
        LegendModule,
        ValAxisModule,
        ExtModule,
        CtgAxisModule,
        NgxEchartsModule,
        MessagesModule,
        MessageModule
        // RouterModule.forChild(ROUTES)
    ],
    exports:[
        SchemaModule,
        ChartModule,
        EditDialogModule,
        ModalDialogModule,
        WidgetComponent
    ]
})

export class WidgetModule{}